/*
 * testShapes.c
 *
 *  Created on: Jul 4, 2008
 *      Author: Carlos Oliveira
 */
#include "shape.h"
#include "shape_rectangle.h"
#include "testShapes.h"
#include <stdio.h>

void test_shapes()
{
	Shape *s = shape_new(NULL);
	shape_draw(s);
	printf("shape created\n");
	printf("num of defining points: %d\n",
			shape_numDefiningPoints(s));
	shape_delete(s);
	ShapeRectangle *r = rect_new(NULL, 0, 0, 10, 10);
	printf("rectangle created\n");
	Shape *sr = (Shape*)r;
	shape_draw(sr);
	printf("num of defining points: %d\n",
			shape_numDefiningPoints(sr));
	shape_delete(sr);
}
